<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('妙手虾皮订单收入明细列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>平台订单id：</label>
                                <input type="text" name="opOrderId"/>
                            </li>
                            <li>
                                <label>平台订单号：</label>
                                <input type="text" name="orderSn"/>
                            </li>
                            <li>
                                <label>店铺id：</label>
                                <input type="text" name="shopId"/>
                            </li>
                            <li>
                                <label>本地币种：</label>
                                <input type="text" name="localCurrency"/>
                            </li>
                            <li>
                                <label>买家实付金额：</label>
                                <input type="text" name="totalAmount"/>
                            </li>
                            <li>
                                <label>Shopee币抵扣：</label>
                                <input type="text" name="coin"/>
                            </li>
                            <li>
                                <label>Shopee Voucher：</label>
                                <input type="text" name="voucher"/>
                            </li>
                            <li>
                                <label>卖家 Voucher：</label>
                                <input type="text" name="voucherSeller"/>
                            </li>
                            <li>
                                <label>卖家返现：</label>
                                <input type="text" name="sellerRebate"/>
                            </li>
                            <li>
                                <label>卖家支付运费：</label>
                                <input type="text" name="actualShippingCost"/>
                            </li>
                            <li>
                                <label>买家支付运费：</label>
                                <input type="text" name="buyerPaidShippingFee"/>
                            </li>
                            <li>
                                <label>shopee运费补贴：</label>
                                <input type="text" name="shippingFeeRebate"/>
                            </li>
                            <li>
                                <label>佣金：</label>
                                <input type="text" name="commissionFee"/>
                            </li>
                            <li>
                                <label>优惠券编码：</label>
                                <input type="text" name="voucherCode"/>
                            </li>
                            <li>
                                <label>优惠券编码：</label>
                                <input type="text" name="voucherName"/>
                            </li>
                            <li>
                                <label>订单收入：</label>
                                <input type="text" name="escrowAmount"/>
                            </li>
                            <li>
                                <label>关税：</label>
                                <input type="text" name="crossBorderTax"/>
                            </li>
                            <li>
                                <label>信用卡手续费：</label>
                                <input type="text" name="creditCardTransactionFee"/>
                            </li>
                            <li>
                                <label>交易手续费：</label>
                                <input type="text" name="sellerTransactionFee"/>
                            </li>
                            <li>
                                <label>服务费：</label>
                                <input type="text" name="serviceFee"/>
                            </li>
                            <li>
                                <label>买家shopee贷款：</label>
                                <input type="text" name="buyerShopeeKredit"/>
                            </li>
                            <li>
                                <label>卖家返现：</label>
                                <input type="text" name="sellerCoinCashBack"/>
                            </li>
                            <li>
                                <label>最终运费：</label>
                                <input type="text" name="finalShippingFee"/>
                            </li>
                            <li>
                                <label>卖家退款金额：</label>
                                <input type="text" name="sellerReturnRefundAmount"/>
                            </li>
                            <li>
                                <label>信用卡推广费用：</label>
                                <input type="text" name="creditCardPromotion"/>
                            </li>
                            <li>
                                <label>是否完成：</label>
                                <input type="text" name="isCompleted"/>
                            </li>
                            <li>
                                <label>订单创建时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单创建时间" name="gmtCreate"/>
                            </li>
                            <li>
                                <label>订单创建时间：</label>
                                <input type="text" class="time-input" placeholder="请选择订单创建时间" name="gmtModified"/>
                            </li>
                            <li>
                                <label>运费总额：</label>
                                <input type="text" name="realShippingFee"/>
                            </li>
                            <li>
                                <label>人民币运费总额：</label>
                                <input type="text" name="cnyRealShippingFee"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="ms:MsOrderIncome:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="ms:MsOrderIncome:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="ms:MsOrderIncome:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="ms:MsOrderIncome:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('ms:MsOrderIncome:edit')}]];
        var removeFlag = [[${@permission.hasPermi('ms:MsOrderIncome:remove')}]];
        var prefix = ctx + "ms/MsOrderIncome";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "妙手虾皮订单收入明细",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'orderIncomeId',
                    title: '表的id',
                    visible: false
                },
                {
                    field: 'opOrderId',
                    title: '平台订单id'
                },
                {
                    field: 'orderSn',
                    title: '平台订单号'
                },
                {
                    field: 'shopId',
                    title: '店铺id'
                },
                {
                    field: 'localCurrency',
                    title: '本地币种'
                },
                {
                    field: 'totalAmount',
                    title: '买家实付金额'
                },
                {
                    field: 'coin',
                    title: 'Shopee币抵扣'
                },
                {
                    field: 'voucher',
                    title: 'Shopee Voucher'
                },
                {
                    field: 'voucherSeller',
                    title: '卖家 Voucher'
                },
                {
                    field: 'sellerRebate',
                    title: '卖家返现'
                },
                {
                    field: 'actualShippingCost',
                    title: '卖家支付运费'
                },
                {
                    field: 'buyerPaidShippingFee',
                    title: '买家支付运费'
                },
                {
                    field: 'shippingFeeRebate',
                    title: 'shopee运费补贴'
                },
                {
                    field: 'commissionFee',
                    title: '佣金'
                },
                {
                    field: 'voucherCode',
                    title: '优惠券编码'
                },
                {
                    field: 'voucherName',
                    title: '优惠券编码'
                },
                {
                    field: 'escrowAmount',
                    title: '订单收入'
                },
                {
                    field: 'crossBorderTax',
                    title: '关税'
                },
                {
                    field: 'creditCardTransactionFee',
                    title: '信用卡手续费'
                },
                {
                    field: 'sellerTransactionFee',
                    title: '交易手续费'
                },
                {
                    field: 'serviceFee',
                    title: '服务费'
                },
                {
                    field: 'buyerShopeeKredit',
                    title: '买家shopee贷款'
                },
                {
                    field: 'sellerCoinCashBack',
                    title: '卖家返现'
                },
                {
                    field: 'finalShippingFee',
                    title: '最终运费'
                },
                {
                    field: 'sellerReturnRefundAmount',
                    title: '卖家退款金额'
                },
                {
                    field: 'creditCardPromotion',
                    title: '信用卡推广费用'
                },
                {
                    field: 'isCompleted',
                    title: '是否完成'
                },
                {
                    field: 'gmtCreate',
                    title: '订单创建时间'
                },
                {
                    field: 'gmtModified',
                    title: '订单创建时间'
                },
                {
                    field: 'realShippingFee',
                    title: '运费总额'
                },
                {
                    field: 'cnyRealShippingFee',
                    title: '人民币运费总额'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.orderIncomeId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderIncomeId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>